package org.example.controller.portal;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/portal/article")
public class ArticlePortalApi {

    //获取文章列表
    @GetMapping("/list/{page}/{size}")
    public RestController listArticle(@PathVariable String page, @PathVariable String size) {
        return null;
    }

    //根据分类获取内容category
    @GetMapping("/list/{categoryId}/{page}/{size}")
    public RestController listArticleByCategoryId(@PathVariable String categoryId, @PathVariable String page, @PathVariable String size) {
        return null;
    }

    //获取文章详情
    @GetMapping("/{articleId}")
    public RestController getArticleDetail(@PathVariable String articleId) {
        return null;
    }

    //获取推荐文章
    @GetMapping("/recomment{articleId}")
    public RestController getRecommentArticle(@PathVariable String articleId) {
        return null;
    }
}
